package com.hmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.order.pojo.OrderDetail;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: Ronin
 * @date 2023/4/9 16:35
 * @Version 2.0
 * @Description:订单详情Mapper层
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    /**
     * 根据订单id查询订单详情
     * @param orderId 订单id
     * @return
     */
    @Select("select * from tb_order_detail where order_id = #{orderId}")
    OrderDetail getByOrderId(Long orderId);

}
